from djangoProject.utils.rong_lian_yun import send_message
from mycelery.main import app


@app.task(name="send_sms")
def send_sms(tid, phone, content):
    res = send_message(tid, phone, content)
    print("sms sent successfully")
    return res


# celery -A mycelery.main worker -l INFO -P eventlet -c 10